from __future__ import unicode_literals

from django.db import models

# Create your models here.

from django.db import models
from django.contrib import admin

# Create your models here.
#########blog################
class BlogsPost(models.Model):
    title = models.CharField(max_length = 150)
    body = models.TextField()
    timestamp = models.DateTimeField()

class BlogPostAdmin(admin.ModelAdmin):
    list_display = ('title','timestamp')

admin.site.register(BlogsPost,BlogPostAdmin)

#######friend link #####

class FriendLink(models.Model):
    sitename = models.CharField(max_length = 80)
    siteurl = models.CharField(max_length = 120)

class FriendLinkAdmin(admin.ModelAdmin):
    list_display = ('sitename','siteurl')

admin.site.register(FriendLink,FriendLinkAdmin)


